package com.qf.flower_zuul.service;


import com.qf.flower_zuul.entity.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "INDEX-SERVICE" ,fallback = MyFlowerInfoHystrix.class)
public interface FlowersService {

    @RequestMapping("/flower/index")
    JsonResult findBySubarea(@RequestParam("subarea") String subarea);

    @RequestMapping("/flower/select")
    JsonResult findByNameAndId(@RequestParam("detailId") Long detailId ,@RequestParam("flowerName") String flowerName);
}